<script >

export default {
  methods: {
    exit(){
      localStorage.removeItem('token')
      this.$router.push({name:"Login"})
    }
  }
}



</script>

<template>
  <div class="exit" >
    <el-button type="danger" @click="exit">退出登录</el-button>
  </div>
</template>

<style scoped>
.exit{
  position: fixed;
  top: 25px;
  left: 90%;
}

</style>